package com.erp.user.service;

import com.erp.user.entity.Permit;
import com.erp.common.response.ListVo;
import com.erp.user.request.*;
import com.erp.user.response.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author shensong
 * @program machining_system.v1.0.0
 * @description 权限 服务类
 * @date 2022/12/21 10:54:42
 */
public interface PermitService extends IService<Permit> {

    ListVo<List<PermitInfoResp>> index(PermitPageReq request);

    Boolean store(PermitAddReq request);

    Boolean update(PermitUpdateReq request);

    Boolean destroy(PermitDeleteReq request);

    Boolean approve(PermitApproveReq request);

    Boolean enabled(PermitStatusReq request);

    PermitInfoResp show(PermitInfoReq request);

    PermitDetailInfoResp detail(PermitInfoReq request);

    List<PermitInfoResp> option(PermitListReq request);

    List<PermitSearchInfoResp> search(PermitSearchReq request);

}
